package la.renzhen.rtpt.config.reload;

import la.renzhen.rtpt.config.ReloadStrategy;
import la.renzhen.rtpt.config.Reloadable;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ImmediateReloadStrategy implements ReloadStrategy {

    @Override
    public void register(Reloadable resource) {
        log.debug("Registering resource " + resource);
        resource.reload();
    }

    @Override
    public void deregister(Reloadable resource) {
        log.debug("De-registering resource " + resource);
    }
}
